package com.ims.core.enums;

/**
 * 税率
 * 0%    0
 * 1%    1
 * 1.5%    1.5
 * 13%    13
 * 3%    3
 * 5%    5
 * 6%    6
 * @author IMS
 */
public enum TaxRate {
    ZERO(0, "0%"),
    ONE(1, "1%"),
    ONE_POINT_FIVE(1.5, "1.5%"),
    THIRTEEN(13, "13%"),
    THREE(3, "3%"),
    FIVE(5, "5%"),
    SIX(6, "6%");

    private final double code;
    private final String name;

    TaxRate(double code, String name) {
        this.code = code;
        this.name = name;
    }

    public double getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}